/*
 * SingleSPOT.java
 */

package org.sunspotworld.demo;

/**
 *
 * @author mi zhang
 */

public class SingleSPOT {
    
    private String myAddress;               // MAC ID
    private int myPort = -1;                // Radio Port Number
    private String myName = null;           // My Name
    private Listener myListener = null;     // Listener

    public SingleSPOT(String myAddress, int myPort, Listener myListener) {
        this.myAddress = myAddress;
        this.myPort = myPort;
        this.myListener = myListener; 
    }

    public void setName(String myName) {
        this.myName = myName;
    }

    public String getName() {
        return myName;
    }
    
    public String getAddress() {
        return myAddress;
    }

    public int getPort() {
        return myPort;
    }

    public Listener getListener() {
        return myListener;
    }    
}
